package com.yungu.swift.assets.driver.service;

import com.yungu.swift.assets.driver.model.dto.DriverChangeCarDto;
import com.yungu.swift.assets.driver.model.dto.DriverCheckDto;
import com.yungu.swift.assets.driver.model.param.AdminDriverChangeCarParam;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.service.BaseService;

import java.util.Map;


/**
 * Copyright © 厦门云谷互联信息有限公司 2018-2020 All Right Reserved
 * <p>
 * 司机申请业务逻辑接口
 * 重写findOne get list queryPage
 *
 * @author Zerrion
 * @version 1.0.0-RELEASE
 * @since 2018-07-05 17:57
 */
public interface DriverChangeCarService extends BaseService<DriverChangeCarDto> {

    /**
     * 审核通过
     *
     * @param changeCarParam 审核通过参数
     * @return AjaxList
     */
    ResponseData<Boolean> pass(AdminDriverChangeCarParam changeCarParam);

    /**
     * 审核驳回
     *
     * @param changeCarParam 审核驳回参数
     * @return AjaxList
     */
    ResponseData<Boolean> reject(AdminDriverChangeCarParam changeCarParam);

    /**
     * 获取最新一条的审核记录,没有审核通过的
     *
     * @param map 参数
     * @return DriverCheckDto
     */
    ResponseData<DriverCheckDto> getLatest(Map<String, Object> map);

    /**
     * 司机修改车辆信息新增
     *
     * @param dto 参数
     * @return Boolean
     */
    ResponseData<Integer> insert(DriverChangeCarDto dto);
}
